package com.yuyou.tas.lesson.service;


import com.yuyou.tas.service.api.lesson.dto.DtoBaseLevel;
import com.yuyou.tas.service.api.lesson.entity.BaseLevel;
import com.yuyou.tas.util.bean.LoginRedisObj;
import com.yuyou.tas.util.bean.Pagination;
import com.yuyou.tas.util.bean.ResBoolSimpleInfo;

import java.util.List;
import java.util.Set;

public interface IBaseLevelService {


    ResBoolSimpleInfo addLevel(String name, Integer isTan,Long pId, LoginRedisObj user,Long organId);
    ResBoolSimpleInfo updateLevel(Long id, String name,Long pId, Integer isTan, LoginRedisObj user);
    ResBoolSimpleInfo delLevel(Long id, LoginRedisObj user);
    ResBoolSimpleInfo<BaseLevel> getLevelByID(Long id);

    int findLevelCount(Pagination<DtoBaseLevel> queryPgn);
    List<DtoBaseLevel> findLevelPageList(Pagination<DtoBaseLevel> queryPgn);

    BaseLevel selectByPKandOrgan(Long id, Long authOrganizationId);
    BaseLevel selectByCode7Organ(String code,Long authOrganizationId);
    List<Long> findByIds(Set<Long> ids);

    BaseLevel findById(Long id);

    List<BaseLevel> findBaseLevelByOrganId(Long organId);

    void sycnLevel(String code , Long organId);
}